package 遍历;

//获取数组中最小值

public class test03 {
    public static void main(String[] args) {
        int[] arr = {12, 45, 65, 3, 65, 44};
        int min = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (min > arr[i]) {
                min = arr[i];
            }
        }
        System.out.println("min:" + min);
    }
}
